<?php
namespace App\Services;
use Exception;
use Illuminate\Support\Facades\Cache;
use EasyWeChat\Factory;
use GuzzleHttp\Client;
use Config,Log;

class DwzService
{
    public static function aifabu($short_id)
    {
        $client = new Client;
        $response = $client->post("https://openapi.aifabu.com/v1/chain/createChain", [
            "form_params" => [
                "apikey" => "a315dd60d0527285beca6aed00bd1306a1042a6e",
                "target_url" => "http://s.kuaitiaourl.cn/".$short_id
            ],
        ]);
        $body = $response->getBody();
        return json_decode($body,true);
    }
}
